class CreateComputersContactsJoinTable < ActiveRecord::Migration
  def self.up
    create_table :computers_contacts, :id => false do |t|
      t.references :computer, :contact # Pour créer les clés etrangères
    end
    add_index :computers_contacts, [:computer_id, :contact_id] # Optionnel
  end

  def self.down
    drop_table :computers_contacts
  end
end
